let sum=0;
module.exports=function(num){
    sum=sum+num;//sum=0+1=1  sum=1+2=3  sum=3+3=6
    return {
        printSum:function(){
            console.log(sum);//1  3 6
        }
    };
};